﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;


namespace BatchLogger
{
    class Program
    {
        static void Main(string[] args)
        {
            InitializeLog();

            Logger.LogIt("Application initialized", Logger.LogType.INFORM);
            
            // Logger.LogToFileAndDB(new Exception("fatal error..."), Logger.LogType.ERROR, "Main");
        }

        private static void InitializeLog()
        {
            string logFolder = ConfigurationManager.AppSettings["LogFolder"];
            string applicationName = System.Diagnostics.Process.GetCurrentProcess().ProcessName;
            string logTitle = "My Application Log";
            Logger.InitializeLogFile(logFolder, applicationName, logTitle);
        }

    }
}
